#ifndef POPULACEITEM_H
#define POPULACEITEM_H
#include"manitem.h"
#include "commomdef.h"

class PopulaceItem : public ManItem
{
    Q_OBJECT
public:
    PopulaceItem(MANTYPE manTp);

    virtual void    paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
    virtual void    SetDetectX();
    virtual void    Go();
    virtual bool    IsTurn();

    void    Run();
    void    SetSosOpac();
public:
    bool        m_bRuning;
    bool        m_bHalf;
    QPixmap     m_SosImage;
    bool        m_bDrawSos;
    float       m_SosOpacity;
public slots:
    virtual void    logic();
    virtual void    Sos();
signals:
    void RunOut(const int& PopType,ManItem* item);
};

#endif // POPULACEITEM_H
